/**
 * Created by jimmy on 2017/6/9.
 */

var userDao = require("../dao/UserDao");

exports.insWxUser = function (user,callbk) {
    userDao.insWxUser(user,callbk);
};

exports.insUser = function (user,callbk) {
    var buser = {
        open_id:user.open_id,
        real_name:user.nick_name
    }
    userDao.insUser(buser,callbk);
}


exports.getWxUser = function(openId,callbk){
    userDao.getWxUser(openId,callbk);
}

exports.getBaseUser = function(openId,callbk){
    userDao.getBaseUser(openId,callbk);
}

exports.getUserAddr = function (userId,callbk){
    userDao.getUserAddr(userId,callbk);
}

exports.getUserAddrById = function(userId,addrId,callbk){
    userDao.getUserAddrById(userId,addrId,callbk);
}